home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Utilities / Help / locale / help / english / sys / set.doc < prev    next >
Encoding:
Text File  |  2000-10-06  |  1.2 KB  |  47 lines

  1. SET
  2.  
  3. Sets a local vaiable.
  4.  
  5. Format
  6.  
  7. SET [<name>] [<string...>]
  8.  
  9. Template
  10.  
  11. NAME,STRING/F
  12.  
  13. Location
  14.  
  15. Internal
  16.  
  17. SET with no arguments lists the current local variables.
  18.  
  19. SET with <name> and <string> arguments creates a new environment variable.
  20. The first word after SET is taken as the <name>. Everything else on the
  21. command line is taken as the <string> argument. Quotation marks are not
  22. required.
  23.  
  24. An environment variable created with SET is local to the Shell in which it
  25. was created. If you create a new Shell with the NEWSHELL command, that Shell
  26. also recognizes any variables created in its parent Shell. However, if you
  27. create a new Shell with the Execute Command Workbench menu item or by opening
  28. the Shell icon, variables created with SET are not recognized in the new
  29. Shells.
  30.  
  31. You can call environment variables in a script or on a command line by
  32. placing a dollar sign ($) in front of the variable name.
  33.  
  34. To remove a local variable definition, use the UNSET command.
  35.  
  36. Examples:
  37.  
  38. 1> SET Origin This process launched from icon
  39.  
  40. creates the local variable Origin that sores a reminder that a Shell was
  41. invoked from an icon rather than a NEWSHELL.
  42.  
  43. 1> ECHO $Origin
  44. This process launched from icon
  45.  
  46. See also: GET, UNSET
  47.